<?php defined('SYSPATH') or die();?>
<!doctype html>
<html xmlns:wb="http://open.weibo.com/wb">
<head head_color=-bUltm >
    <meta charset="utf-8">
    <title>{$seoinfo['seotitle']}-{$GLOBALS['cfg_webname']}</title>
    {if $seoinfo['keyword']}
    <meta name="keywords" content="{$seoinfo['keyword']}" />
    {/if}
    {if $seoinfo['description']}
    <meta name="description" content="{$seoinfo['description']}" />
    {/if}
    {include "pub/varname"}
    {Common::css_plugin('inform.css','news')}
    {Common::css('gonglue.css,base.css,extend.css')}
    {Common::js('jquery.min.js,base.js,common.js,delayLoading.min.js')}
</head>
	<body>
    {request "pub/header"}
		<div class="st-container clear">
            <div class="wm-1200">

				<div class="st-guide">
                    {st:position action="show_crumbs" typeid="$typeid" info="$info"}
				</div>
				<!-- 面包屑 -->
                {if St_Functions::is_normal_app_install('product_seeding')}
                {php}
                $seeding = Model_Product_Seeding::get_info(2);
                $seeding_status = $seeding['status'];
                $seeding_location = $seeding['location'];
                $seeding_typeid = $seeding['typeid'];
                $seeding_kind = $seeding['kind'];
                {/php}
                {if $seeding_status}
                {if $seeding_location==1}
                {if $seeding_typeid>0}
                {php}
                $seeding_model = Model_Model::get_module_info($seeding_typeid);
                if ($seeding_model['id'] > 200 && $seeding_model['maintable'] == 'model_archive')
                {
                $taglib = 'tongyong';
                }
                else
                {
                $taglib = $seeding_model['pinyin'];
                }
                $seeding_flag = 'order';
                {/php}
                {if $taglib == 'line'}
                {st:line action="query" flag="$seeding_flag" tagword="$tagword" row="2" return="recommends"}
                {elseif $taglib == 'outdoor'}
                {st:outdoor action="query" flag="$seeding_flag" tagword="$tagword" row="2" return="recommends"}
                {elseif $taglib == 'hotel'}
                {st:hotel action="query" flag="$seeding_flag" tagword="$tagword" row="2" return="recommends"}
                {elseif $taglib == 'car'}
                {st:car action="query" flag="$seeding_flag" tagword="$tagword" row="2" return="recommends"}
                {elseif $taglib == 'spot'}
                {st:spot action="query" flag="$seeding_flag" tagword="$tagword" row="2" return="recommends"}
                {elseif $taglib == 'visa'}
                {st:visa action="query" flag="$seeding_flag" tagword="$tagword" row="2" return="recommends"}
                {elseif $taglib == 'tuan'}
                {st:tuan action="query" flag="$seeding_flag" tagword="$tagword" row="2" return="recommends"}
                {elseif $taglib == 'ship_line'}
                {st:ship action="query" flag="$seeding_flag" tagword="$tagword" row="2" return="recommends"}
                {elseif $taglib == 'tongyong'}
                {st:tongyong action="query" flag="$seeding_flag" tagword="$tagword" typeid="$seeding_typeid" row="2" return="recommends"}
                {/if}
                {if $recommends}
				<div class="recommend-show">
					<div class="recommend-tit">今日推荐</div>
					<ul class="clearfix">
                        {loop $recommends $rec}
						<li class="clearfix{if $n==2} mr-0{/if}">
							<div class="pic">
                                <a href="{$rec['url']}">
                                    <img src="{Product::get_lazy_img()}" st-src="{Common::img($rec['litpic'],218,148)}" alt="{$rec['title']}" title="{$rec['title']}" />
                                </a>
                            </div>
							<div class="info clearfix">
								<a class="bt" href="{$rec['url']}">{$rec['title']}</a>
								<p class="attr clearfix">
                                    {if $rec['price']}
                                    <span class="price">{Currency_Tool::symbol()}<b>{$rec['price']}</b>起</span>
                                    {else}
                                    <span class="price"><b>电询</b></span>
                                    {/if}
                                    <span class="myd">满意度：<em>{php echo rtrim($rec['satisfyscore'], '%') . '%';}</em></span>
								</p>
							</div>
						</li>
                        {/loop}
					</ul>
				</div>
				<!--今日推荐-->
                {/if}
                {/if}
                {/if}
                {/if}
                {/if}
                <div class="article-main-container">
                    <div class="article-tip">
                        <h1 class="article-title">{$info['title']}</h1>
                        <span class="article-date">{Common::mydate('Y-m-d',$info['modtime'])}</span>
                    </div>
                    <div class="article-mark">
                        <span class="label">文章摘要</span>
                        {$info['summary']}
                    </div>
                    <div class="article-main">
                        <div class="article-context clearfix">
                            {Common::content_image_width($info['content'],833,0)}
                        </div>
                        <div class="article-info">
                            {if !empty($info['comefrom']) || !empty($info['fromsite'])}
                            <span class="item">文章来源：{$info['comefrom']}&nbsp;{$info['fromsite']}</span>
                            {/if}
                            {if !empty($info['author'])}
                            <span class="item">编辑：{$info['author']}</span>
                            {/if}
                            <span class="item">阅读次数：{$info['shownum']}</span>
                        </div>
                        <div style="margin-top: 5px">
                            <wb:share-button addition="text" type="button"></wb:share-button>
                            <script src="https://tjs.sjs.sinajs.cn/open/api/js/wb.js" type="text/javascript" charset="utf-8"></script>
                        </div>
                        <div class="article-piece clearfix">
                            {if !empty($info['prev']['title'])}
                                <span class="item fl">上一篇：<a href="{$info['prev']['url']}" target="_blank">{$info['prev']['title']}</a></span>
                            {else}
                                <span class="item fl">上一篇：没有了</a></span>
                            {/if}
                            {if !empty($info['next']['title'])}

                                <span class="item fr">下一篇：<a href="{$info['next']['url']}">{$info['next']['title']}</a></span>
                            {else}
                                <span class="item fr">下一篇：没有了</span>
                            {/if}

                        </div>
                    </div>

                    {if St_Functions::is_normal_app_install('product_seeding')}
                    {php}
                    $seeding = Model_Product_Seeding::get_info(2);
                    $seeding_status = $seeding['status'];
                    $seeding_location = $seeding['location'];
                    $seeding_typeid = $seeding['typeid'];
                    $seeding_kind = $seeding['kind'];
                    {/php}
                    {if $seeding_status}
                    {if $seeding_location==2}
                    {if $seeding_typeid>0}
                    {php}
                    $seeding_model = Model_Model::get_module_info($seeding_typeid);
                    if ($seeding_model['id'] > 200 && $seeding_model['maintable'] == 'model_archive')
                    {
                    $taglib = 'tongyong';
                    }
                    else
                    {
                    $taglib = $seeding_model['pinyin'];
                    }
                    $seeding_flag = 'order';
                    {/php}
                    {if $taglib == 'line'}
                    {st:line action="query" flag="$seeding_flag" tagword="$tagword" row="2" return="recommends"}
                    {elseif $taglib == 'outdoor'}
                    {st:outdoor action="query" flag="$seeding_flag" tagword="$tagword" row="2" return="recommends"}
                    {elseif $taglib == 'hotel'}
                    {st:hotel action="query" flag="$seeding_flag" tagword="$tagword" row="2" return="recommends"}
                    {elseif $taglib == 'car'}
                    {st:car action="query" flag="$seeding_flag" tagword="$tagword" row="2" return="recommends"}
                    {elseif $taglib == 'spot'}
                    {st:spot action="query" flag="$seeding_flag" tagword="$tagword" row="2" return="recommends"}
                    {elseif $taglib == 'visa'}
                    {st:visa action="query" flag="$seeding_flag" tagword="$tagword" row="2" return="recommends"}
                    {elseif $taglib == 'tuan'}
                    {st:tuan action="query" flag="$seeding_flag" tagword="$tagword" row="2" return="recommends"}
                    {elseif $taglib == 'ship_line'}
                    {st:ship action="query" flag="$seeding_flag" tagword="$tagword" row="2" return="recommends"}
                    {elseif $taglib == 'tongyong'}
                    {st:tongyong action="query" flag="$seeding_flag" tagword="$tagword" typeid="$seeding_typeid" row="2" return="recommends"}
                    {/if}
                    {if $recommends}
                    <div class="recommend-show">
						<div class="recommend-tit">今日推荐</div>
						<ul class="clearfix">
                            {loop $recommends $rec}
                            <li class="clearfix{if $n==2} mr-0{/if}">
                                <div class="pic">
                                    <a href="{$rec['url']}">
                                        <img src="{Product::get_lazy_img()}" st-src="{Common::img($rec['litpic'],218,148)}" alt="{$rec['title']}" title="{$rec['title']}" />
                                    </a>
                                </div>
                                <div class="info clearfix">
                                    <a class="bt" href="{$rec['url']}">{$rec['title']}</a>
                                    <p class="attr clearfix">
                                        {if $rec['price']}
                                        <span class="price">{Currency_Tool::symbol()}<b>{$rec['price']}</b>起</span>
                                        {else}
                                        <span class="price"><b>电询</b></span>
                                        {/if}
                                        <span class="myd">满意度：<em>{php echo rtrim($rec['satisfyscore'], '%') . '%';}</em></span>
                                    </p>
                                </div>
                            </li>
                            {/loop}
						</ul>
					</div>
					<!--今日推荐-->
                    {/if}
                    {/if}
                    {/if}
                    {/if}
                    {/if}
                    <div class="article-about">
                        <h3 class="about-title">相关阅读</h3>
                        <ul class="about-list clearfix">
                            {php $category_id = $info['category_two'] ? $info['category_two'] : $info['category_one'];}
                            {st:news action="query" flag="relative" row="4" categoryid="$category_id"}
                            {loop $data $row}
                            <li {if $n%2==0}class="mr_0"{/if}>
                                <div class="pic">
                                    <a href="{$row['url']}" class="item"><img src="{Common::img($row['litpic'],200,135)}" alt="{$row['title']}" title="{$row['title']}" width="200" height="135" /></a>
                                </div>
                                <div class="con">
                                    <a href="{$row['url']}" target="_blank" class="tit">{$row['title']}</a>
                                    <p class="txt">{if !empty($row['summary'])}{Common::cutstr_html($row['summary'],40)}{else}{Common::cutstr_html($row['content'],40)}{/if}</p>
                                </div>
                            </li>
                            {/loop}
                        </ul>
                    </div>
				</div>

            </div>
        </div>

    {request "pub/footer"}
	</body>
<script>
    var articleid ="{$info['id']}"
    $(function(){
        $.ajax({
            type:'POST',
            url:SITEURL+'news/ajax_add_shownum',
            data:{id:articleid},
            success:function(){

            }
        })
    })
</script>
</html>
